package com.onpositive.data.serializer.writers;

import com.onpositive.data.serializer.readers.DefaultReaderFactory;

public class IntWriter extends CollectionWriter<Integer>{

	public IntWriter() {
		super( Integer.class ); 
	}

	@Override
	protected void writeValue( Integer w ) {
		super.writeIntToStream( w );
	}

	@Override
	protected int getItemSize() {
		return 4;
	}

	@Override
	protected Integer defaultObject() {
		return Integer.MIN_VALUE ;
	}

	@Override
	protected int getID()
	{
		return DefaultReaderFactory.RW_ID_INTEGER ;				
	}
	
}
